{ wltrunk, stdenv, fetchgit, meson, ninja, cmake, pkgconfig, wayland-protocols,
wayland, pixman,  libxkbcommon, libudev, wlroots, scdoc, libGL, xorg }:


stdenv.mkDerivation {
  pname = "bspwc";
  version = "2019-11-27";

  src = fetchgit {
    url = "https://git.sr.ht/~bl4ckb0ne/bspwc";
    rev = "5edc0d19758574ffacaeb4b18eeca4956c2b675e";
    sha256 = "0py3dy0ykgw5my7bn510m06ffpwx0kca7052ncg23s5l9vnwdzvd";
  };

  nativeBuildInputs = [ meson ninja cmake pkgconfig libudev ]; buildInputs =
  [wltrunk wayland-protocols wayland pixman libxkbcommon wlroots scdoc libGL xorg.libX11];

  meta = with stdenv.lib; {
    homepage = "https://git.sr.ht/~bl4ckb0ne/bspwc";
    description = "Binary space partitioning wayland compositor based on wltrunk";
    license = licenses.gpl3;
    # maintainers =
  };
}
